<?php if (!defined('BASEPATH')) exit('Access Deny.');
class Db_Mysqli extends Db
{
    public function __construct(&$dsn, $db_key)
    {
        var_dump($dsn);
        foreach ($dsn as $key => $val)
        {
            $this->$key = $val;
        }
    }
    
    /**
     * Connect database
     * @return boolean
    **/
    public function connect()
    {
        $this->link = mysqli_connect($this->hostname, $this->username, $this->password);
    }
}